#!/bin/bash

# Create build directory
mkdir -p build

echo "Building for macOS (darwin/amd64)..."
GOOS=darwin GOARCH=amd64 go build -o build/hello-gui-macos-amd64 .

echo "Building for macOS (darwin/arm64)..."
GOOS=darwin GOARCH=arm64 go build -o build/hello-gui-macos-arm64 .

echo "Building for Windows (windows/amd64)..."
GOOS=windows GOARCH=amd64 go build -o build/hello-gui-windows-amd64.exe .

echo "Building for Windows (windows/arm64)..."
GOOS=windows GOARCH=arm64 go build -o build/hello-gui-windows-arm64.exe .

echo "Build complete! Binaries are in the build/ directory."